package cn.wolfcode.p2p.business.service;

import cn.wolfcode.p2p.base.query.BidRequestQuery;
import cn.wolfcode.p2p.business.domain.BidRequest;
import cn.wolfcode.p2p.util.PageResult;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface IBidRequestService {
        void borrowApply(BidRequest bidRequest);

        PageResult selectForList(BidRequestQuery qo);

        BidRequest getById(Long id);

        void publishAudit(Long id, String remark, Integer state, Date publishTime);

        List<BidRequest> queryPublishPendng();
        void selectPublishBidRequestToQueue();
        void checkPublishBidRequestForQueue();

        List<BidRequest> listBidRequestBiding();

        void bid(Long bidRequestId, BigDecimal amount);

        void fullAudit1(Long id, String remark, Integer state);

        void fullAudit2(Long id, String remark, Integer state);

        void returnMoner(Long id);
}
